<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AdminBalanceRecord
 *
 * @ORM\Table(name="admin_balance_record", options={"comment":"余额记录"})
 * @ORM\Entity()
 */
class AdminBalanceRecord
{
    public static $type_array = array(
        5 => '粉丝购买',  //订单表id   （次）用户表id--邀请人的id
        6 => '提现失败退款' //提现表id
    );

    //余额记录字段规则说明
    /**
     * 粉丝购买  记录1：订单号 记录2 购买者uid
     * 提现失败退款 
     */

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\User", inversedBy="id")
     * @ORM\JoinColumn(name="admin_id", referencedColumnName="id")
     */
    private $admin_id;

    /**
     * @var string
     *
     * @ORM\Column(name="operation_no", type="string", length=45,  options={"comment":"操作号"})
     */
    private $operation_no;

    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="smallint", options={"comment":"记录类型"})
     */
    private $type;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_defray", type="boolean", options={"comment":"是否支出  0 否 1 是"})
     */
    private $is_defray;

    /**
     * @var string
     *
     * @ORM\Column(name="money", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="金额"})
     */
    private $money;

    /**
     * @var string
     *
     * @ORM\Column(name="remarks", type="string", length=225,  nullable=true, options={"comment":"备注信息"})
     */
    private $remarks;

    /**
     * @var string
     *
     * @ORM\Column(name="subject", type="string", length=45,  options={"comment":"(主要)记录对象的标识-已后需要值的时候在另外查询，效率的话可以点击再查询"})
     */
    private $subject;

    /**
     * @var string
     *
     * @ORM\Column(name="subject_1", type="string", length=45, nullable=true, options={"comment":"(次要)辅助记录标识"})
     */
    private $subject_1;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;


    /**
     * @var string
     *
     * @ORM\Column(name="record_1", type="string", length=45, nullable=true, options={"comment":"记录字段1"})
     */
    private $record_one;

    /**
     * @var string
     *
     * @ORM\Column(name="record_2", type="string", length=45, nullable=true, options={"comment":"记录字段2"})
     */
    private $record_2;

    /**
     * @var string
     *
     * @ORM\Column(name="record_3", type="string", length=45, nullable=true, options={"comment":"记录字段3"})
     */
    private $record_3;

    /**
     * @var string
     *
     * @ORM\Column(name="record_4", type="string", length=45, nullable=true, options={"comment":"记录字段4"})
     */
    private $record_4;

    /**
     * @var string
     *
     * @ORM\Column(name="record_5", type="string", length=45, nullable=true, options={"comment":"记录字段5"})
     */
    private $record_5;

    /**
     * @var string
     *
     * @ORM\Column(name="record_6", type="string", length=45, nullable=true, options={"comment":"记录字段6"})
     */
    private $record_6;
}
